/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pckVista.Contenedores;

import pckVista.Ventas.frmBoleta;
import pckVista.Ventas.frmFactura;
import pckVista.Ventas.frmProforma;

/**
 *
 * @author Hider Sánchez - Departamento de Sistemas : SINTEC-PERÚ
 *
 * : sintecperu@gmail.com : informes@sintecperu.tk
 *
 * : http://www.sintecperu.tk : http://www.sintecperu.com
 */
public class pnlVentas extends javax.swing.JPanel {
   private  frmPrincipal oPrincipal;
    
    /**
     * Creates new form pnlOperaciones
     */
    public pnlVentas( frmPrincipal f) {
        oPrincipal=f;
        initComponents();
        setBackground(new java.awt.Color(190,206,205));
         this.setVisible(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btlBoleta = new javax.swing.JButton();
        btnProforma = new javax.swing.JButton();
        btnfactura = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();

        btlBoleta.setText("Boleta");
        btlBoleta.setFocusable(false);
        btlBoleta.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btlBoleta.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btlBoleta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btlBoletaActionPerformed(evt);
            }
        });

        btnProforma.setText("Proforma");
        btnProforma.setFocusable(false);
        btnProforma.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnProforma.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnProforma.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProformaActionPerformed(evt);
            }
        });

        btnfactura.setText("Factura");
        btnfactura.setFocusable(false);
        btnfactura.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnfactura.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnfactura.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnfacturaActionPerformed(evt);
            }
        });

        jLabel2.setFont(new java.awt.Font("sansserif", 1, 18)); // NOI18N
        jLabel2.setText("Menu de Ventas");
        jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btlBoleta, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(btnfactura, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(btnProforma, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel2))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel2)
                .addGap(31, 31, 31)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnProforma, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnfactura, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btlBoleta, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnProformaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProformaActionPerformed
        frmProforma f= new frmProforma();
 f.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_btnProformaActionPerformed

    private void btlBoletaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btlBoletaActionPerformed
 frmBoleta f= new frmBoleta();
 f.setVisible(true);
        
    }//GEN-LAST:event_btlBoletaActionPerformed

    private void btnfacturaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnfacturaActionPerformed
        frmFactura f= new frmFactura();
 f.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_btnfacturaActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btlBoleta;
    private javax.swing.JButton btnProforma;
    private javax.swing.JButton btnfactura;
    private javax.swing.JLabel jLabel2;
    // End of variables declaration//GEN-END:variables
}
